package com.example.my.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.my.entity.User;

public interface UserService extends IService<User> {


    boolean register(User user);


    String login(String username, String password);

    User getUserByToken(String token);


    boolean logout(String token);

    boolean validateToken(String token);
}